﻿@{
    Layout = null;
    
     List<EnterpriseFund.Model.TaxClassAllowance> taxClassAllowanceList =  ViewData["taxClassAllowanceList"]==null?new List<EnterpriseFund.Model.TaxClassAllowance>(): ViewData["taxClassAllowanceList"] as List<EnterpriseFund.Model.TaxClassAllowance>;
     int sum = taxClassAllowanceList.Count + 1;
     int sum2 = taxClassAllowanceList.Count + 2;
     System.Data.DataTable showData = ViewData["showData"] == null ? new System.Data.DataTable() : ViewData["showData"] as System.Data.DataTable;
     }

<!DOCTYPE html>
 
<html>
<head>
<title></title>
      @if (false)
       {
        <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
       }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <link href="@Url.Content("~/Content/jquery-ui.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/jquery-ui.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/regex.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>
   
    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)
 <style>
    .tableStyle
{
	width: 2000px;
	border: solid 1px black;
		padding: 6px 5px;
	border-collapse: collapse;
}
.tableStyle td
{
}

.tableStyle .tdClass
{
	padding: 0px;
  padding: 6px 5px;
	border: solid 1px black;
	white-space: nowrap;
}
.tableStyle th
{
	text-align: right;
	padding: 6px 5px;
	border: solid 1px black;
}
.tableStyle .button
{
	margin: 2px 0px 0px 2px;
	float: left;
}

text{border:1px solid #aecaf0;}

    </style>
<script>
    $(document).ready(function () {
        $("#content").attr("src", rootPath + '/QueryForecastSummarySheet/ShowData');
    });
    var pre;
    function selectArow(sObject) {
        $(sObject).attr("style", "BACKGROUND-COLOR: #e0f2ff");
        if (pre != null && pre != sObject) {
            $(pre).attr("style", "BACKGROUND-COLOR: white");
        }
        pre = sObject;
    }
    window.onresize = function () { $("#content").attr("height", parent.document.body.clientHeight - 100); }
    function MenuTop_emClick(source, e) {
        switch (e.item.name) {
            case "btnSave":
                {

                    form1.submit();
                    break;

                }
            case "btnReport":
                {
                    document.frames["content"].focus();
                    document.frames["content"].print();

                    break;
                }

        }
    }
</script>
    
</head>
<body>

@Html.DevExpress().Menu(settings =>
{
    settings.Name = "toolBarMenu";
    settings.ItemAutoWidth = false;
    settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
    settings.Styles.Style.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
    settings.Styles.Style.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);
    settings.Items.Add(item =>
    {
        item.Name = "btnSave";
        item.Text = "导出Excel";
        item.Image.Url = Url.Content("~/Content/ControlImages/import.png");
    });

    settings.Items.Add(item =>
    {
        item.Name = "btnReport";
        item.Text = "打印";
        item.Image.Url = Url.Content("~/Content/icons/print.png");
    });
    settings.ClientSideEvents.ItemClick = "function(source,e){MenuTop_emClick(source,e)}";
    settings.ItemLinkMode = ItemLinkMode.ContentBounds;
}).GetHtml()
 @using (Html.BeginForm("ToExecl", "QueryForecastSummarySheet", FormMethod.Post, new { id = "form1" }))
 {
    
 }

   <iframe  id='content' name='content' style='width:100%' frameborder='0' src=''></iframe>
</body>
</html>
